<div id="[:control_name:]" url="[:refresh_url:]">
    <h3>Upload profile picture</h3><br>
    <div style="height:600px">
        <div><img src="[:photo:]"></div>
        <div style="margin-top:20px">[:upload:]</div>
    </div>
</div>
<script>
new BaseControl('[:control_name:]');
$('UploadControl').uploadComplete = function uploadComplete(){
	$('[:control_name:]').control.refresh();
    window.parent.location = "[:url_app:]/my-account";
};
</script>